package com.ensa.googlemapsandroidv2;

import com.ensa.googlemapsandroidv2.R;

import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.ActionBar.TabListener;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public class TestLayout extends FragmentActivity implements TabListener{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.testlayout1);
		
		ActionBar bar = getActionBar();
		
		    bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
		    for (int i=1; i <= 3; i++) {
		        Tab tab = bar.newTab();
		        tab.setText("Tab " + i);
		        tab.setTabListener(this);
		        bar.addTab(tab);

		    }

	}

	@Override
	public void onTabReselected(Tab arg0, FragmentTransaction arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onTabSelected(Tab arg0, FragmentTransaction arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onTabUnselected(Tab arg0, FragmentTransaction arg1) {
		// TODO Auto-generated method stub
		
	}

}
